<?php
namespace Model;
use Kuyuan\WqCore\Model\Model;
class W7CoreAttachmentModel extends Model
{
    protected $_fields = array(
        "id",
        "uniacid",
        "uid",
        "filename",
        "attachment",
        "type",
        "createtime",
        "module_upload_dir",
        "group_id",
        "displayorder"
    );

    public function getSrcAttr($_value,$_data)
    {
        return tomedia($_data["attachment"]);
    }
}